package ModelLayer;

public class Betaling {
	//instance variables
    private int betalingId;
    private String betalingsDato;
    private double totalPris; 
    private boolean betalingsStatus;
    
    // Creates a new instance of Betaling
    public Betaling()
    {
    }
    public Betaling(int betalId, double totalPris, boolean betalingsStatus) 
    {
    	this.betalingId = betalId;
    	betalingsDato = "";
    	this.totalPris = totalPris;
    	this.betalingsStatus = betalingsStatus;
    }
  
    public Betaling(String betalingsDato, double totalPris,
			boolean betalingsStatus) 
    {
		this.betalingsDato = betalingsDato;
		this.totalPris = totalPris;
		this.betalingsStatus = betalingsStatus;
	}
    
	public Betaling(int betalId, String betalingsDato, double totalPris, boolean betalingsStatus) 
	{
    	this.betalingId = betalId;
    	this.betalingsDato = betalingsDato;
    	this.totalPris = totalPris;
    	this.betalingsStatus = betalingsStatus;
	}
	//set methods
    public void setBetalId(int betalId)
    {
        this.betalingId = betalId;
    }
    public void setBetalingsDato(String betalingsDato)
    {
        this.betalingsDato = betalingsDato;
    }
    public void setTotalPris(double totalPris)
    {
        this.totalPris = totalPris;
    }     
	    
    public void setBetalingsStatus(boolean betalingsStatus)
	{
	    this.betalingsStatus = betalingsStatus;
	}    	    
    
  //get method
    public int getBetalId()
    {
        return betalingId;
    }
    public String getBetalingsDato()
    {
        return betalingsDato;
    }
    public double getTotalPris()
    {
        return totalPris;
    }
    public boolean getBetalingsStatus()
    {
        return betalingsStatus;
    }
   
}
